package cn.tangwei.product.domain;

import cn.tangwei.org.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class Product {
    private Long id;
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date onsaletime;
    private Integer state = 0;// 0 下架 1 上架
    private String costprice;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createtime;
    private Integer salecount;
    private Long shop_id;
    /*关联属性*/
    private ProductDetail detail;
    /*关联属性*/
    private Shop shop;
}
